<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/9/6
 * Time: 7:51
 */
namespace Admin\Model;
use Think\Model\RelationModel;
class CategoryModel extends RelationModel{
    protected $_link=array(
        'children'=>array(
            'mapping_type'=>self::HAS_MANY,
            'class_name'=>'Category',
            'parent_key'=>'parent_id',
            'mapping_order'=>'sort_order',
        ),
        );

}